package com.zzptc.sky.bdsjws.fragments.base;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.zzptc.sky.bdsjws.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Unbinder;

/**
 * Created by Administrator on 2017/5/26 0026.
 */

public class FirstFragmentOneSos extends BaseFragmentOneSos {
    @BindView(R.id.kaiqi)
    Button kaiqi;
    Unbinder unbinder;

    @Override
    public int getContentXml() {
        return R.layout.first_sos_fragment;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        // TODO: inflate a fragment view
        View rootView = super.onCreateView(inflater, container, savedInstanceState);
        unbinder = ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick(R.id.kaiqi)
    public void onViewClicked() {
        //两种方法换Fragment
//        getFragmentManager().beginTransaction().replace(R.id.fl_sos,new SecondFragmentOneSos()).commit();
        getFragmentManager().beginTransaction().replace(R.id.fl_sos,new SecondFragmentOneSos()).commit();
    }
}
